package string_;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/21 15:05
 */
public class String03 {
    public static void main(String[] args) {
        Test test = new Test();
        test.change(test.str, test.ch);
        System.out.print(test.str + " and ");
        System.out.println(test.ch);
    }
}

class Test{
    String str = new String("hsp");
    final char[] ch ={'j', 'a', 'v', 'a'};

    public void change(String str, char[] ch){
        str = "java";
        ch[0] = 'h';
    }
}